package ModelLayer;

/**
 * Write a description of class Supplier here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Supplier extends Person
{
    private int deliveryTime;
    private String paymentMethod;
    private int supplierId;

    /**
     * Constructor for objects of class Supplier.
     * @param name, the name of the supplier.
     * @param phoneNumber, the phonenumber on this supplier.
     * @param address, the address on this supplier.
     * @param city, the city on this supplier.
     * @param zipCode, the zipcode on this supplier.
     * @param supplierId, the id on this supplier.
     * @param deliveryTime, the deliveryTime on this supplier.
     * @param paymentMethod, the paymentMethod on this supplier.
     */
    public Supplier(String name, String phoneNumber, String address, String city, String zipCode, int supplierId, int deliveryTime, String paymentMethod)
    {
        super(name, phoneNumber, address, city, zipCode);
        supplierId = 0;
        this.deliveryTime =deliveryTime;
        this.paymentMethod = paymentMethod;
    }

    /**
     * Returns the id on this supplier.
     * @return supplierId, the id returned.
     */
    public int getId()
    {
        return supplierId;
    }

    /**
     * Returns the deliveryTime on this supplier.
     * @return deliveryTime, the deliveryTime returned.
     */
    public int getDeliveryTime()
    {
        return deliveryTime;
    }

    /**
     * Returns the paymentMethod on this supplier.
     * @return paymentMethod, the paymentMethod returned.
     */
    public String getPaymentMethod()
    {
        return paymentMethod;
    }

    /**
     * Sets supplierId on this supplier.
     * @param supplierId, the supplierId set.
     */
    public void setId(int supplierId)
    {
        this.supplierId = supplierId;
    }

    /**
     * Sets deliveryTime on this supplier.
     * @param deliveryTime, the deliveryTime set.
     */
    public void setDeliveryTime(int deliveryTime)
    {
        this.deliveryTime = deliveryTime;
    }

    /**
     * Sets paymentMethod on this supplier.
     * @param paymentMethod, the paymentMethod set.
     */
    public void setPaymentMethod(String paymentMethod)
    {
        this.paymentMethod = paymentMethod;
    }

    /**
     * Returns null.
     * @return null, eh??.
     * skulle nok ikke have været en abstract metode.
     */
    public String getUserName()
    {
        return null;
    }

    /**
     * Returns null.
     * @return null, eh??.
     * skulle nok ikke have været en abstract metode.
     */
    public String getPassword()
    {
        return null;
    }
}
